package com.ruoyi.business.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.business.mapper.TenantFunctionReturnValueVersionMapper;
import com.ruoyi.business.domain.TenantFunctionReturnValueVersion;
import com.ruoyi.business.service.ITenantFunctionReturnValueVersionService;

/**
 * 租户组件功能点返回值Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-11-14
 */
@Service
public class TenantFunctionReturnValueVersionServiceImpl implements ITenantFunctionReturnValueVersionService 
{
    @Autowired
    private TenantFunctionReturnValueVersionMapper tenantFunctionReturnValueVersionMapper;

    /**
     * 查询租户组件功能点返回值
     * 
     * @param id 租户组件功能点返回值主键
     * @return 租户组件功能点返回值
     */
    @Override
    public TenantFunctionReturnValueVersion selectTenantFunctionReturnValueVersionById(Long id)
    {
        return tenantFunctionReturnValueVersionMapper.selectTenantFunctionReturnValueVersionById(id);
    }

    /**
     * 查询租户组件功能点返回值列表
     * 
     * @param tenantFunctionReturnValueVersion 租户组件功能点返回值
     * @return 租户组件功能点返回值
     */
    @Override
    public List<TenantFunctionReturnValueVersion> selectTenantFunctionReturnValueVersionList(TenantFunctionReturnValueVersion tenantFunctionReturnValueVersion)
    {
        return tenantFunctionReturnValueVersionMapper.selectTenantFunctionReturnValueVersionList(tenantFunctionReturnValueVersion);
    }

    /**
     * 新增租户组件功能点返回值
     * 
     * @param tenantFunctionReturnValueVersion 租户组件功能点返回值
     * @return 结果
     */
    @Override
    public int insertTenantFunctionReturnValueVersion(TenantFunctionReturnValueVersion tenantFunctionReturnValueVersion)
    {
        tenantFunctionReturnValueVersion.setCreateTime(DateUtils.getNowDate());
        return tenantFunctionReturnValueVersionMapper.insertTenantFunctionReturnValueVersion(tenantFunctionReturnValueVersion);
    }

    /**
     * 修改租户组件功能点返回值
     * 
     * @param tenantFunctionReturnValueVersion 租户组件功能点返回值
     * @return 结果
     */
    @Override
    public int updateTenantFunctionReturnValueVersion(TenantFunctionReturnValueVersion tenantFunctionReturnValueVersion)
    {
        tenantFunctionReturnValueVersion.setUpdateTime(DateUtils.getNowDate());
        return tenantFunctionReturnValueVersionMapper.updateTenantFunctionReturnValueVersion(tenantFunctionReturnValueVersion);
    }

    /**
     * 批量删除租户组件功能点返回值
     * 
     * @param ids 需要删除的租户组件功能点返回值主键
     * @return 结果
     */
    @Override
    public int deleteTenantFunctionReturnValueVersionByIds(Long[] ids)
    {
        return tenantFunctionReturnValueVersionMapper.deleteTenantFunctionReturnValueVersionByIds(ids);
    }

    /**
     * 删除租户组件功能点返回值信息
     * 
     * @param id 租户组件功能点返回值主键
     * @return 结果
     */
    @Override
    public int deleteTenantFunctionReturnValueVersionById(Long id)
    {
        return tenantFunctionReturnValueVersionMapper.deleteTenantFunctionReturnValueVersionById(id);
    }
}
